package com.evil.application.pojo.dto.form.control.save;

import com.evil.application.pojo.entity.ApplicationFormControl;

/**
 * 用于实时记录参数 抽象实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public abstract class SaveControlDTO {

    /**
     * 根据field 获取 控件
     *
     * @param controlField controlField
     * @return ApplicationFormControl
     */
    public abstract ApplicationFormControl getControlByField(String controlField);

    /**
     * 获取新选项id
     *
     * @param controlId   controlId
     * @param oldOptionId oldOptionId
     * @return Long
     */
    public abstract Long getNewOptionId(Long controlId, Long oldOptionId);
}
